<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<div class="bjui-pageContent">
	<div class="bjui-datagrid">
		<div class="datagrid-title">管理员更新</div>
		<form action="${rootPath }/back/admins/adminsUpdateSubmit.htm"
			data-toggle="ajaxform">
			<input type="hidden" name="id" value="${requestScope.admins.id}">
			<input type="hidden" name="operType" value="${param.operType}">
			
			<div class="bjui-row col-3">
				<label class="row-label">角色：</label>
				<div class="row-input required">
					<select name="roleId" data-toggle="selectpicker" data-rule="required">
						<c:forEach items="${requestScope.roleList }" var="role" varStatus="stat">
							<option value="${role.id }" ${requestScope.admins.roleId == role.id ? 'selected' : '' }>${role.name }</option>
						</c:forEach>
					</select>
				</div>
				<label class="row-label">邮箱：</label>
				<div class="row-input required">
					<input type="text" name="email" id="j_custom_name" value="${requestScope.admins.email }"
						data-rule="required;email">
				</div>
				<label class="row-label">姓名：</label>
				<div class="row-input required">
					<input type="text" name="name" maxlength="20"
					 value="${requestScope.admins.name }" data-rule="required"/>
				</div>
				<label class="row-label">手机：</label>
				<div class="row-input required">
					<input type="text" name="phone" maxlength="11" data-rule="required;mobile"
						value="${requestScope.admins.phone }"/>
				</div>
				<label class="row-label">qq：</label>
				<div class="row-input required">
					<input type="text" name="qq" data-rule="required"
						value="${requestScope.admins.qq }"/>
				</div>
				<label class="row-label">性别：</label>
				<div class="row-input">
					<input type="radio" name="sex" id="adminsUpdateSex0" ${requestScope.admins.sex == '0' ? 'checked' : '' }
						data-toggle="icheck" value="0" data-rule="checked"
						data-label="保密&nbsp;&nbsp;">
					<input type="radio" name="sex" id="adminsUpdateSex1"
						data-toggle="icheck" value="1" data-rule="checked" ${requestScope.admins.sex == '1' ? 'checked' : '' }
						data-label="男&nbsp;&nbsp;">
					<input type="radio" name="sex" id="adminsUpdateSex2"  ${requestScope.admins.sex == '2' ? 'checked' : '' }
						data-toggle="icheck" value="2" data-label="女">
				</div>
				<label class="row-label">状态：</label>
				<div class="row-input">
					<input type="radio" name="status" id="adminsUpdateStatus1" ${requestScope.admins.status == '1' ? 'checked' : '' }
						data-toggle="icheck" value="1" data-rule="checked"
						data-label="启用&nbsp;&nbsp;">
					<input type="radio" name="status" id="adminsUpdateStatus0"
						data-toggle="icheck" value="0" data-rule="checked" ${requestScope.admins.status == '0' ? 'checked' : '' }
						data-label="禁用&nbsp;&nbsp;">
				</div>
			</div>
		</form>
	</div>
</div>
<div class="bjui-pageFooter">
	<ul>
		<li><button type="button" class="btn-close" data-icon="close">取消</button></li>
		<li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
	</ul>
</div>